package com.tcd.outRisk.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;


import com.baomidou.mybatisplus.annotation.TableField;

import java.sql.Date;
import java.io.Serializable;
import java.util.List;

import com.tcd.Policy.pojo.WarrantyInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 赔案主档表
 * </p>
 *
 * @author Jarle
 * @since 2021-05-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class ClaimMainInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 赔案号
     */
    @TableId(value = "claimMain_Id")
    private Long claimmainId;

    /**
     * 报案号
     */
    @TableField("caseReportId")
    private Long caseReportId;

    /**
     * 保单号
     */
    @TableField("warranty_Id")
    private Long warrantyId;

    /**
     * 立案时间
     */
    @TableField("filing_Time")
    private Date filingTime;

    /**
     * 结案时间
     */
    @TableField("closeCase_Time")
    private Date closecaseTime;

    public ClaimMainInfo(Long claimmainId, Long caseReportId, Long warrantyId, Date filingTime, Date closecaseTime, Integer claimStatus) {
        this.claimmainId = claimmainId;
        this.caseReportId = caseReportId;
        this.warrantyId = warrantyId;
        this.filingTime = filingTime;
        this.closecaseTime = closecaseTime;
        this.claimStatus = claimStatus;
    }

    @TableField("claimMainNo")
    private String claimMainNo;
    /**
     * 赔案主状态（1.已报案 2已立案 3已结案 4已撤案）
     */
    @TableField("claim_Status")
    private Integer claimStatus;

    @TableField(exist = false)
    private CaseReportInfo cases;
    @TableField(exist = false)
    public List<WarrantyInfo> warray;

}
